package io.mft.runtime.function.combination;

import io.mft.api.domain.ApiRegulation;
import io.mft.commons.function.ExecuteReturn;
import io.mft.runtime.function.ApiContext;
import io.mft.runtime.function.FunctionExecutor;

public class CombinationRegulationApiFunctionExecutor extends FunctionExecutor{

	private FunctionExecutor apiFunctionExecutor;
	private ApiRegulation apiRegulation;
	public ApiRegulation getApiRegulation() {
		return apiRegulation;
	}
	public CombinationRegulationApiFunctionExecutor(FunctionExecutor apiFunctionExecutor,ApiRegulation apiRegulation) {
		this.apiFunctionExecutor=apiFunctionExecutor;
		this.apiRegulation=apiRegulation;
	}
	@Override
	public ExecuteReturn doExecute(ApiContext context) {
		return apiFunctionExecutor.doExecute(context);
	}

}
